Skip to content

Conversation

@bizzappdev
Copy link
Contributor

No description provided.

@bizzappdev bizzappdev force-pushed the 19.0-mig-base_view_inheritance_extension-BAD branch from 6a88440 to 278dae3 Compare September 24, 2025 07:55
@bizzappdev bizzappdev marked this pull request as ready for review September 24, 2025 09:32
Copy link

@Reyes4711-S73 Reyes4711-S73 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link

@eugenios73 eugenios73 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGFM

@yankinmax
Copy link
Contributor

Hello @bizzappdev I've a traceback on one of another migrations related to this module.
Can you pls take a look and update this PR:
https://github.com/OCA/operating-unit/actions/runs/19571555294/job/56046065076?pr=818#step:7:653

Traceback (most recent call last):
  ...
  File "/opt/odoo/odoo/addons/base/models/ir_ui_view.py", line 1027, in _combine
    combined_arch = view.apply_inheritance_specs(combined_arch, arch)
  File "/opt/odoo-venv/lib/python3.10/site-packages/odoo/addons/base_view_inheritance_extension/models/ir_ui_view.py", line 58, in apply_inheritance_specs
    source = handled_by(source, specs)
  File "/opt/odoo-venv/lib/python3.10/site-packages/odoo/addons/base_view_inheritance_extension/models/ir_ui_view.py", line 113, in _inheritance_handler_attributes_update
    node_attr = (node.get(attr_name) or "{}").strip()
AttributeError: 'NoneType' object has no attribute 'get'

Maybe just a check if a node exist?

@alexis-via
Copy link
Contributor

@bizzappdev what does the "-BAD" suffix mean in your branch name ??

"summary": "Adds more operators for view inheritance",
"website": "https://github.com/OCA/server-tools",
"depends": ["base"],
"external_dependencies": {"python": ["astor"]},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

astor is not used in the code, so it can be removed

hbrunn and others added 17 commits December 12, 2025 17:52
Trivial changes:

* Version in README changed
* Version in manifest changed

OCA Transbot updated translations from Transifex

OCA Transbot updated translations from Transifex
…extension. (OCA#804)

* Add list_add operation.
* Add list_remove operation.

OCA Transbot updated translations from Transifex
expression not match the node any more. Fixes OCA#885
*  warning about dynamic context
* import for safe_eval
alexis-via and others added 13 commits December 12, 2025 17:52
[MIG] base_view_inheritance_extension: Migration to 18.0

Co-authored-by: Lukas Tran <[email protected]>
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: server-tools-18.0/server-tools-18.0-base_view_inheritance_extension
Translate-URL: https://translation.odoo-community.org/projects/server-tools-18-0/server-tools-18-0-base_view_inheritance_extension/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: server-tools-18.0/server-tools-18.0-base_view_inheritance_extension
Translate-URL: https://translation.odoo-community.org/projects/server-tools-18-0/server-tools-18-0-base_view_inheritance_extension/
Currently translated at 100.0% (4 of 4 strings)

Translation: server-tools-18.0/server-tools-18.0-base_view_inheritance_extension
Translate-URL: https://translation.odoo-community.org/projects/server-tools-18-0/server-tools-18-0-base_view_inheritance_extension/nl/
Drops ``astor``: unused external dependency
@bizzappdev bizzappdev force-pushed the 19.0-mig-base_view_inheritance_extension-BAD branch from 278dae3 to 955672f Compare December 12, 2025 12:35
Copy link
Contributor

@AaronHForgeFlow AaronHForgeFlow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It works, so only pending to attend current open comments.

@OCA-git-bot
Copy link
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

@StefanRijnhart
Copy link
Member

@bizzappdev did you address the error 'AttributeError: 'NoneType' object has no attribute 'get'' mentioned in #3382 (comment) already?

@yankinmax
Copy link
Contributor

@bizzappdev did you address the error 'AttributeError: 'NoneType' object has no attribute 'get'' mentioned in #3382 (comment) already?

We've fixed the issue happening on another PR inheriting from base_view_inheritance_extension.
I think it was a corner case.
But, maybe it's worth it for the safety.

@StefanRijnhart
Copy link
Member

/ocabot migration base_view_inheritance_extension

@OCA-git-bot OCA-git-bot added this to the 19.0 milestone Dec 17, 2025
@OCA-git-bot OCA-git-bot mentioned this pull request Dec 17, 2025
40 tasks
Copy link
Member

@StefanRijnhart StefanRijnhart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@yankinmax Oh, thanks for the followup. In that case there is likely no issue in this module. Merging as all comments are covered now.

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

Hey, thanks for contributing! Proceeding to merge this for you.
Prepared branch 19.0-ocabot-merge-pr-3382-by-StefanRijnhart-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 716ff1f into OCA:19.0 Dec 17, 2025
7 checks passed
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at 5a02ef0. Thanks a lot for contributing to OCA. ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.